package com.lswms.modules.lswms.service.impl.recipient;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lswms.common.service.impl.CrudServiceImpl;
import com.lswms.modules.lswms.dao.recipient.RecipientsforwardDao;
import com.lswms.modules.lswms.dto.recipient.RecipientsforwardDTO;
import com.lswms.modules.lswms.entity.recipient.RecipientsforwardEntity;
import com.lswms.modules.lswms.service.recipient.RecipientsforwardService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * ${comments}
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-07-18
 */
@Service
public class RecipientsforwardServiceImpl extends CrudServiceImpl<RecipientsforwardDao, RecipientsforwardEntity, RecipientsforwardDTO> implements RecipientsforwardService {

    @Override
    public QueryWrapper<RecipientsforwardEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<RecipientsforwardEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}